package com.hongxun.project.assets.exportdetailed.dxf;

/**
 * Created by xiaoji on 2016/6/16.
 * 曲线公式 根据控制点来画曲线 只适合平面图 贝塞尔曲线
 */
public class Spline {
    public String id;//句柄
    public String x1;
    public String y1;
    public String x2;
    public String y2;
    public String x3;
    public String y3;

    /**
     * 构造曲线对象
     * @param x1 第一个点的横坐标
     * @param y1 第一个点的纵坐标
     * @param x2
     * @param y2
     * @param x3
     * @param y3
     */
    public Spline(String x1, String y1, String x2, String y2, String x3, String y3) {
        this.x1 = x1;
        this.y1 = y1;
        this.x2 = x2;
        this.y2 = y2;
        this.x3 = x3;
        this.y3 = y3;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getX1() {
        return x1;
    }

    public void setX1(String x1) {
        this.x1 = x1;
    }

    public String getY1() {
        return y1;
    }

    public void setY1(String y1) {
        this.y1 = y1;
    }

    public String getX2() {
        return x2;
    }

    public void setX2(String x2) {
        this.x2 = x2;
    }

    public String getY2() {
        return y2;
    }

    public void setY2(String y2) {
        this.y2 = y2;
    }

    public String getX3() {
        return x3;
    }

    public void setX3(String x3) {
        this.x3 = x3;
    }

    public String getY3() {
        return y3;
    }

    public void setY3(String y3) {
        this.y3 = y3;
    }
}
